/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.state.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.behavioral.state.HappState;
import za.ac.cput.DesignPatterns.behavioral.state.Person;
import za.ac.cput.DesignPatterns.behavioral.state.SadState;

/**
 *
 * @author Nashief
 */ 
@Configurable 
public class StateConf {
    
    @Bean 
    public HappState happState(){
    return new HappState();
    } 
    @Bean 
    public SadState sadState(){
    return new SadState();
    }
    @Bean 
    public Person person(){
    return new Person(null);
    }
    
}
